window.onload = function () {
    var http = window.location.protocol;
    var host = window.location.host;
    var location = window.location.href;
    var halfURL = http + "//" + host;
    var lessThenIE8 = function () {
        var UA = navigator.userAgent,
            isIE = UA.indexOf('MSIE') > -1,
            v = isIE ? /\d+/.exec(UA.split(';')[1]) : 'no ie';
        if (isIE) {
            if (v <= 8) {
                if (window.top !== window.self) { window.top.location = window.location; }
                if (location == http + "//" + host + "/index/index/browser") return false;
                return window.location.href = "/index/index/browser";
            } else {
                if (location == halfURL || location == halfURL + "/" || location == halfURL + "/index/index" || location == halfURL + "/index/index/" || location == halfURL + "/index/index.html" || location == halfURL + "/index/index/home") {
                    return false;
                }
               //console.log(location == halfURL , location == halfURL + "/" , location == halfURL + "/index/index" , location == halfURL + "/index/index/" , location == halfURL + "/index/index.html" , location == halfURL + "/index/index/home")
                window.location.href = "/index/index";
            }
        }

    }();

}